<?php

/**
 * Description of MyBaseListView
 * 
 * @author trongkhoi
 * @since Jul 6, 2013 - 6:03:36 PM
 */
Yii::import('zii.widgets.grid.CGridView');

class MyBaseListView extends CGridView
{

    public $htmlOptions = array('class' => 'box-content');
    public $template = "{items}\n{summary}\n{pager}";
    public $summaryText = '';
    public $itemsCssClass = 'table table-striped table-bordered bootstrap-datatable';
    public $pagerCssClass = 'dataTables_paginate paging_bootstrap pagination';
    public $ajaxUpdate = true;
    public $pager = array(
        'class' => 'application.widgets.MyLinkPager',
        'header' => '',
        'maxButtonCount' => 5,
        'nextPageLabel' => '&raquo;',
        'firstPageLabel' => '←',
        'lastPageLabel' => '→',
        'prevPageLabel' => '&laquo;',
        'selectedPageCssClass' => 'active',
    );

    public function init()
    {
        $this->summaryText = Yii::t('user','Showing {start} to {end} of {count} record(s).');
        parent::init();
//        $this->pager['cssFile'] = Yii::app()->controller->assetDir . '/css/mycgridview.css';
    }

}

/**
 * End of MyBaseListView
 */